package com.learning.vo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.learning.enums.QuestionType;
import lombok.Data;

/**
 * 答卷 VO
 * 用于学生答卷展示
 *
 * @author ashinnotfound
 * @date 2024/06/09
 */
@Data
public class AnswerPaperVO implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long answerPaperId;

	private List<QuestionVO> questionList;

	private LocalDateTime createTime;

	// 试卷总分
	private Integer totalScore;

	@Data
	public static class QuestionVO {
		private Long questionId;
		private String content;
		private Float score;
		// 1-选择题，2-填空题，3-主观题
		private QuestionType type;
	}
}
